class Solution {
    public int maximumWealth(int[][] accounts) {
      int sum = 0 ;
      for(int i = 0 ; i<accounts.length ; i++){
          int sum2 = 0 ;
          for(int j = 0 ; j < accounts[i].length ; j++){
                sum2 += accounts[i][j] ;
          }
          if(sum < sum2){
              sum = sum2 ;
          }
      }
return sum ;
    }
}